package com.david.dubbo.xml.service.impl;

import com.david.dubbo.xml.domain.User;
import com.david.dubbo.xml.service.DavidService;

/**
 * @author David
 * @version V1.0
 * @Package com.david.dubbo.xml.service.impl
 * @date 2021/4/8 23:57
 */
public class DavidServiceImpl implements DavidService {
    public User queryUserById(int id) {
        try {
            Thread.sleep(800l);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        User user =new User();
        user.setId(id);
        user.setAge(18);
        user.setName("David");
        return user;
    }
}
